package com.studyroom.service;

import com.studyroom.dto.QuestionDTO;
import com.studyroom.dto.Result;
import com.studyroom.entity.Answer;
import com.studyroom.entity.Question;

public interface QuestionService {
    Result getListByType(String type);

    Result getById(Long id);

    Result add(Question question);

    Result del(Long id);

    Result getAnswers(Long id);

    Result addAnswer(Answer answer);

    Result clickLike(Long id);


    Result setSolve(Answer answer);

    Result getListByTitleWithFuzzy(String title);

    Result getAnswersByQuestionId(Long id,Integer current);

    Result addPageView(Long questionId);
}
